package com.wolf.cx330.workmanager

import android.content.Context
import androidx.work.Worker
import androidx.work.WorkerParameters

class UploadWorker(context: Context, private val workerParameters: WorkerParameters) : Worker(context, workerParameters) {

    override fun doWork(): Result {
        val imgUrl = inputData.getString("IMAGE_URI") ?: return Result.failure()
        uploadFile(imgUrl)
        return Result.success()
    }

    private fun uploadFile(imgUrl: String) {

    }
}